module.exports = function ($scope, $resource, $modalInstance, bus, toaster, FileUploader) {

    $scope.bus = bus;

	$scope.gogo = function(){
		$resource('/api/as/ggc/bus/update', {}, {}).save($scope.bus, function (res) {
            if (res.errcode === 0){
                toaster.success({title: '', body: '修改成功'});
                $modalInstance.close();
            } else {
                toaster.error({title: '', body: res.errmsg});
            }
        });
	};
    $scope.close = function () {
        $modalInstance.dismiss('cancel');
    }

};